package io.gitee.cloudladder.obsidian.swagger2.example.generator;

import io.gitee.cloudladder.obsidian.swagger2.example.ResponseExampleGenerator;
import io.gitee.cloudladder.obsidian.swagger2.example.entity.User;
import io.gitee.cloudladder.obsidian.swagger2.example.entity.Response;

public class GetUserResponseExampleGenerator implements ResponseExampleGenerator<Response<User>> {

    @Override
    public Response<User> generate() {
        return Response.success(User.newInstance().withId("1b6cde72ade4f5").withAge("32").withSex("0").withUsername("zhangsan"));
    }

}
